<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/12/7
  Time: 21:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>管理员信息</title>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/index.css" />">
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/public.css" />">
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/reset.css" />">
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/detail.css" />">
    <style>
        footer {
            position: absolute;
            bottom: 0;
            width: 100%;
            line-height: 40px
        }
    </style>
</head>
<body>
<jsp:include page="../banner.jsp">
    <jsp:param name="user" value="${sessionScope.user}"/>
</jsp:include>
<div id="nav">
    <!-- 导航栏版心部分 -->
    <div class="nav_con">
        <ul>
            <li><a href="../">首页</a></li>
            <li><a href="<c:url value="/book/bookList" />">图书馆书籍管理</a></li>
            <li><a href="<c:url value="/admin/checkRequests" />">借阅请求审核</a></li>
            <li><a href="<c:url value="/admin/book/returnBook" />">还书管理</a></li>
            <li><a href="<c:url value="/admin/borrowerList" />">借阅者管理</a></li>
            <c:if test="${sessionScope.user.role eq 'root'}">
                <li><a href="<c:url value="/admin/adminList" />">管理员账户管理</a></li>
            </c:if>
        </ul>
    </div>
</div>



<div class="bookDiv bookDetails">
    <div class="bookTitle bookDetailsTitle">管理员信息</div>

    <div class="bookDetailsInfor bookName">
        <div class="bookDetailItem">账号：</div>
        <div class="bookDetailItemInfor"><c:out value="${userEntity.account}"/></div>
    </div>
    <div class="bookDetailsInfor bookAuthor">
        <div class="bookDetailItem">姓名 ：</div>
        <div class="bookDetailItemInfor"><c:out value="${userEntity.fullName}"/></div>
    </div>
    <div class="bookDetailsInfor bookPublisherTime">
        <div class="bookDetailItem">邮箱：</div>
        <div class="bookDetailItemInfor"><c:out value="${userEntity.email}"/></div>
    </div>
    <div class="bookDetailsInfor bookDescription">
        <div class="bookDetailItem">电话 ：</div>
        <div class="bookDetailItemInfor"><c:out value="${userEntity.phoneNo}"/></div>
    </div>
    <div class="bookDetailsInfor bookDescription">
        <div class="bookDetailItem">注册时间：</div>
        <div class="bookDetailItemInfor"><fmt:formatDate value="${userEntity.registerTime}" type="date"/></div>
    </div>
    <div>
        <button class="bookFunction bookFunction1"
                onclick="window.location.href = '<c:url value="/admin/lock?account=${userEntity.account}" />'">删除此管理员
        </button>
        <button class="bookFunction bookFunction2"
                onclick="window.location.href = '<c:url value="/admin/modifyUserInfo?account=${userEntity.account}" />'">修改信息
        </button>
    </div>
</div>


<jsp:include page="../footer.jsp"/>
</body>
</html>
